Documentation for Users  2.0.6
Perception Toolbox for Virtual Reality (PTVR) Manual
Text

PTVR text features let you display text in a highly controlled manner regarding positioning in space, alignement, print size, font type and color.

Example of texts placed on a tangent screen - see the relevant demo Stroop_effect_with_tangent_screens.py.

You can manipulate all these notions easily using the Text object PTVR.Stimuli.World.Text. The Text object is composed of two elements: The text content and the bounding box of the text in which the text is displayed (called Textbox). This object is based on the TextMeshPro object in Unity.

Fos information on the angular size of text characters see the following link (located within the 'Visual Angles' section in the PTVR Documentation):

For more information on text in general and other related concepts, see :

Demos

The path of demos about text is: ...\PTVR_Researchers\Python_Scripts\Demos\Text

Python file

Description

10_hello_world.py

Simplest way of displaying text (character size is defined with fontsize_in_postscript_points, i.e. this is NOT an angular value)

text_height_at_different_radial_distances.py

Visually check that texts of same angular x-height at different viewing distances are visually overlapping.

alignment_of_text.py

Illustrates the use of differents way of aligning text within a textbox.